﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
using Testicide.Models;

namespace Testicide.DAL
{
    public class TesticideContext :DbContext
    {
        //The name of the connection string (which you'll add to the Web.config file later) is passed in to the constructor.
        public TesticideContext() : base("TesticideContext")
        {
        }
        
        public DbSet<Project> Project { get; set; }
        public DbSet<Module> Module { get; set; }
        public DbSet<Feature> Feature { get; set; }
        public DbSet<Scenario> Scenario { get; set; }
        public DbSet<ScenarioToolBox> ScenarioToolBox { get; set; }
        public DbSet<UserProfile> UserProfiles { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}